package com.ljx.service;

import com.ljx.dao.PersonDao;
import com.ljx.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/04/20 16:52
 * @description:
 */
@Service
public class PersonService {

	@Autowired
	private PersonDao personMapper;

	public Person queryOne(Integer id) {
		Person byId = personMapper.findByAge(27);

		return byId;
	}
}
